package com.choosefine.ide.ideaPlugin;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import demo.XBrowser;

import javax.swing.*;

public class FirstAction extends AnAction {

	public void actionPerformed(AnActionEvent event) {
		Project project = (Project)event.getData(PlatformDataKeys.PROJECT);
		try {
			XBrowser.showXBrowser("http://localhost:8080/v1/springboot/demo/beetl/table.html");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
	}
}